package designPattern.builder;

public class App {
    public static void main(String[] args) {
        //构造器
        MailBuilder mailBuilder = new MailBuilder();

        //Director
        Director director = new Director(mailBuilder);

        //封装构建过程
        director.construct("6666@qq.com","7777@qq.com","Builder","finish building");

        //构建mail,输出相关信息
        System.out.println(mailBuilder.toMail());
    }
}
